package org.nt4b.schemadoc.core.dom;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class SchemaComments implements Serializable {
    private static final long serialVersionUID = 6503891778427055438L;
    
    private List<Table> tables = new ArrayList<Table>();
    
    public List<Table> getTables() {
        return tables;
    }
    
    public void setTables(final List<Table> tables) {
        this.tables = tables;
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((tables == null) ? 0 : tables.hashCode());
        return result;
    }
    
    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SchemaComments other = (SchemaComments) obj;
        if (tables == null) {
            if (other.tables != null) {
                return false;
            }
        } else if (!tables.equals(other.tables)) {
            return false;
        }
        return true;
    }
    
}
